//
//  LoginView.m
//  UI2_设计模式课后作业
//
//  Created by dllo on 15/11/9.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "LoginView.h"

@implementation LoginView

- (void)dealloc
{
    [_label release];
    [_textF release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubview];
    }
    return self;
}

- (void)createSubview
{
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width / 3.0, self.frame.size.height)];
//    self.label.backgroundColor = [UIColor redColor];
    [self addSubview:self.label];
    [_label release];
    
    self.textF = [[UITextField alloc] initWithFrame:CGRectMake(self.label.frame.size.width, 0, self.frame.size.width * 2 / 3.0, self.frame.size.height)];
    self.textF.clearButtonMode = UITextFieldViewModeAlways;
    self.textF.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF];
    [_textF release];
    
    
    
    
}








@end
